package com.zelix;

import java.awt.Component;
import java.awt.Container;
import java.awt.event.*;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.JTextComponent;

public class a4 extends x3
        implements ItemListener, ListSelectionListener, FocusListener, ActionListener {

    JComboBox f;
    DefaultComboBoxModel g;
    t3 h;
    DefaultListModel i;
    JTextField j;
    JTextField k;
    static String l[];
    private static String z[];

    public a4(JFrame jframe, jt jt1, int i1) {
        super(jframe, jt1, i1);
        b();
    }

    public void actionPerformed(ActionEvent actionevent) {
        Object obj = actionevent.getSource();
        a(obj);
    }

    void a() {
        label0:
        {
            op op1;
            label1:
            {
                boolean flag = tb.b;
                op1 = super.c.s();
                if (op1 == null)
                    break label0;
                if (op1.t()) {
                    f.setSelectedIndex(1);
                    if (!flag)
                        break label1;
                }
                if (op1.s()) {
                    f.setSelectedIndex(2);
                    if (!flag)
                        break label1;
                }
                if (op1.r()) {
                    f.setSelectedIndex(3);
                    if (!flag)
                        break label1;
                }
                if (op1.q()) {
                    f.setSelectedIndex(4);
                    if (!flag)
                        break label1;
                }
                f.setSelectedIndex(0);
            }
            if (op1.u())
                h.addSelectionInterval(0, 0);
            if (op1.e())
                h.addSelectionInterval(1, 1);
            if (op1.x())
                h.addSelectionInterval(2, 2);
            if (op1.w())
                h.addSelectionInterval(3, 3);
            if (op1.m())
                h.addSelectionInterval(4, 4);
            if (op1.i())
                h.addSelectionInterval(5, 5);
            if (op1.p())
                h.addSelectionInterval(6, 6);
            if (op1.o())
                h.addSelectionInterval(7, 7);
        }
    }

    public void focusGained(FocusEvent focusevent) {
        label0:
        {
            Object obj = focusevent.getSource();
            if (obj == j) {
                super.e.setText(z[22]);
                if (!tb.b)
                    break label0;
            }
            if (obj == k)
                super.e.setText(z[23]);
        }
    }

    public void focusLost(FocusEvent focusevent) {
        super.e.setText(" ");
        Object obj = focusevent.getSource();
        a(obj);
    }

    public void itemStateChanged(ItemEvent itemevent) {
        boolean flag = tb.b;
        Object obj = itemevent.getSource();
        if (obj == f && itemevent.getStateChange() == 1)
            switch (f.getSelectedIndex()) {
                default:
                    break;

                case 0: // '\0'
                    super.c.a(2);
                    if (!flag)
                        break;
                    // fall through

                case 1: // '\001'
                    super.c.e(2);
                    if (!flag)
                        break;
                    // fall through

                case 2: // '\002'
                    super.c.d(2);
                    if (!flag)
                        break;
                    // fall through

                case 3: // '\003'
                    super.c.c(2);
                    if (!flag)
                        break;
                    // fall through

                case 4: // '\004'
                    super.c.b(2);
                    break;
            }
    }

    void a(Object obj) {
        label0:
        {
            boolean flag = tb.b;
            if (obj == j) {
                String s = j.getText().trim();
                if (s.length() == 0) {
                    j.setText(super.c.p());
                    f2.a(super.b, z[25], z[26]);
                    if (!flag)
                        break label0;
                }
                super.c.d(s);
                if (!flag)
                    break label0;
            }
            if (obj != k)
                break label0;
            String s1 = k.getText().trim();
            if (s1.indexOf("*") != -1) {
                k.setText(super.c.q());
                f2.a(super.b, z[25], z[24]);
                if (!flag)
                    break label0;
            }
            super.c.e(s1);
        }
    }

    public void b() {
        j0 j0_1 = new j0(this);
        setLayout(j0_1);
        g = new DefaultComboBoxModel();
        f = new JComboBox(g);
        i = new DefaultListModel();
        h = new t3(i);
        h.setSelectionMode(2);
        JLabel jlabel = new JLabel(z[2], 2);
        j = new JTextField();
        JLabel jlabel1 = new JLabel(z[18], 2);
        k = new JTextField();
        super.e = new JLabel(" ");
        add(f, z[11]);
        add(new q4(h), z[13]);
        add(j, z[7]);
        add(k, z[14]);
        add(super.e, z[10]);
        add(jlabel, z[5]);
        add(jlabel1, z[19]);
        j0_1.a(l);
        g.addElement(z[4]);
        g.addElement(z[3]);
        g.addElement(z[16]);
        g.addElement(z[21]);
        g.addElement(z[1]);
        i.addElement(z[12]);
        i.addElement(z[15]);
        i.addElement(z[20]);
        i.addElement(z[6]);
        i.addElement(z[8]);
        i.addElement(z[17]);
        i.addElement(z[0]);
        i.addElement(z[9]);
        a();
        j.setText(super.c.p());
        k.setText(super.c.q());
        f.addItemListener(this);
        h.addListSelectionListener(this);
        j.addFocusListener(this);
        k.addFocusListener(this);
        j.addActionListener(this);
        k.addActionListener(this);
    }

    public void valueChanged(ListSelectionEvent listselectionevent) {
        t3 t3_1;
        int i1;
        int j1;
        boolean flag;
        flag = tb.b;
        t3_1 = (t3) listselectionevent.getSource();
        i1 = i.getSize();
        j1 = 0;
        for (; j1 < i1; j1++) {
            switch (j1) {
                default:
                    break;

                case 0: // '\0'
                    super.c.k(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 1: // '\001'
                    super.c.b(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 2: // '\002'
                    super.c.n(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 3: // '\003'
                    super.c.m(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 4: // '\004'
                    super.c.g(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 5: // '\005'
                    super.c.e(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 6: // '\006'
                    super.c.j(t3_1.isSelectedIndex(j1), 2);
                    break;

                case 7: // '\007'
                    super.c.i(t3_1.isSelectedIndex(j1), 2);
                    break;
            }
        }
    }

    private static char[] z(String s) {
        char ac[] = s.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x0e;
        return ac;
    }

    private static String z(char ac[]) {
        for (int i = 0; i < ac.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x53;
                    break;
                case 1:
                    key = 6;
                    break;
                case 2:
                    key = 84;
                    break;
                case 3:
                    key = 5;
                    break;
                default:
                    key = 14;
                    break;
            }
            ac[i] ^= key;
        }
        return new String(ac).intern();
    }

    static {
        String as[] = new String[27];
        as[0] = z(z("rp;io'o8`"));
        as[1] = z(z("#g7no4c"));
        as[2] = z(z("\035g9`4"));
        as[3] = z(z("#s6ig0"));
        as[4] = z(z("og7fk utka'&'uk0o2lk78"));
        as[5] = z(z("=g9`B1j"));
        as[6] = z(z("'t5k}:c:q"));
        as[7] = z(z("=g9`H?b"));
        as[8] = z(z("ru dz:e"));
        as[9] = z(z("rr&d` o1kz"));
        as[10] = z(z("));o:qB1j"));
        as[11] = z(z("2e7`} K;ag5o1wM<k6jL<~"));
        as[12] = z(z(" r5qg0"));
        as[13] = z(z(">i0lh:c&Ig r"));
        as[14] = z(z("'\177$`H?b"));
        as[15] = z(z("5o:db"));
        as[16] = z(z("#t;qk0r1a"));
        as[17] = z(z("r`=ko?"));
        as[18] = z(z("\007\177$`4"));
        as[19] = z(z("'\177$`B1j"));
        as[20] = z(z("%i8dz:j1"));
        as[21] = z(z("#t=so'c"));
        as[22] = z(z("\026h `|sh5hksi2%z;ctcg6j0+.\036g-%m<h dg=& mks$~'.$o8am2t0+"));
        as[23] = z(z("\026h `|s`!ib*&%po?o2lk7&7io utko>ctj|sgtu|:k=qg%ctqw#cz%@<&#lb7e5wj ("));
        as[24] = z(z("\025o1ijsr-ukse5k`<rtfa=r5l`sq=ij0g&a}}&\022lk?btwk r;wk7("));
        as[25] = z(z("\026t&j|"));
        as[26] = z(z("\025o1ijsh5hksk!vzsd1%}#c7lh:c0+.\025o1ijst1vz<t1a "));
        z = as;
        String as1[] = new String[25];
        as1[0] = z(z("?g-j{'(<`g4n 8`2k1Cb7(0`h2s8qF6o3mzy1"));
        as1[1] = z(z("0i8pc=7\003lj'niho+.5fm6u'Ha7o2lk!E;hl<D;} 7c2d{?r\003lj'nx%c<b=cg6t\030l}'(0`h2s8qY:b m'"));
        as1[2] = z(z("2e7`} K;ag5o1wM<k6jL<~zik5ri0"));
        as1[3] = z(z("2e7`} K;ag5o1wM<k6jL<~zqa#;a"));
        as1[4] = z(z("2e7`} K;ag5o1wM<k6jL<~zrg7r<8m<j!h`bQ=az;"));
        as1[5] = z(z(">i0lh:c&Ig rzik5ri0"));
        as1[6] = z(z(">i0lh:c&Ig rzqa#;5fm6u'Ha7o2lk!E;hl<D;} 1i qa>-a"));
        as1[7] = z(z(">i0lh:c&Ig rzrg7r<8m<j!h`bQ=az;"));
        as1[8] = z(z(">i0lh:c&Ig rzga'r;h30i:qo:h1w 1i qa>+<l`'J6i 7c2d{?r\034`g4n (<c"));
        as1[9] = z(z("?g6`b\004o0qfnk5}&=g9`B1jzak5g!iz\004o0qf\177& |~6J6i 7c2d{?r\003lj'n}"));
        as1[10] = z(z("=g9`B1jzfk=r1wWnh5hk\025j0+m6h `|\n"));
        as1[11] = z(z("=g9`B1jzik5ridm0c'vC<b=cg6t\027jc1i\026jv}t=bf'-e0"));
        as1[12] = z(z("=g9`B1jzrg7r<8b2d1iY:b m"));
        as1[13] = z(z("=g9`H?bzik5riko>c\030gb}t=bf'-e"));
        as1[14] = z(z("=g9`H?bzqa#;a"));
        as1[15] = z(z("=g9`H?bzwg4n 8m<h dg=c&+|:a<q#f"));
        as1[16] = z(z("'\177$`B1jzfk=r1wWnr-uk\025j0+m6h `|\n"));
        as1[17] = z(z("'\177$`B1jzik5ridm0c'vC<b=cg6t\027jc1i\026jv}t=bf'-e0"));
        as1[18] = z(z("'\177$`B1jzrg7r<8b2d1iY:b m"));
        as1[19] = z(z("'\177$`H?bzik5riqw#c\030gb}t=bf'-e"));
        as1[20] = z(z("'\177$`H?bzqa#;:dc6@8a 1i qa>-a"));
        as1[21] = z(z("'\177$`H?bzwg4n 8m<h dg=c&+|:a<q#f"));
        as1[22] = z(z("));o:qB1jzik5ri0"));
        as1[23] = z(z("));o:qB1jzga'r;h30i:qo:h1w 1i qa>+a"));
        as1[24] = z(z("));o:qB1jzwg4n 8m<h dg=c&+|:a<q#f"));
        l = as1;
    }
}